<?php

$str  = base64_encode("This is Hello and world in php");

echo $str;
echo "\n\n";
var_dump(base64_decode($str));
echo "\n\n";

$str  = base64_encode(("One");

echo $str;
echo "\n\n";
var_dump(base64_decode($str));
echo "\n\n";

